function B=normalize_rrintervals(B)
global SENSOR
temp = B.sensor{SENSOR.R_ECGID};
B.sensor{SENSOR.R_ECGID}.rr_value(temp.rr_outlier == 0)=(temp.rr_value(temp.rr_outlier == 0)-mean(temp.rr_value(temp.rr_outlier ==0 )))/sqrt(var(temp.rr_value(temp.rr_outlier ==0)));
end
